package com.xrx.webtemplate.controller;

import com.xrx.webtemplate.web.api.DemoApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xierongxian on 2017/4/23.
 */
@RestController
@RequestMapping("demoApi")
public class DemoApiController {
    @Autowired
    private DemoApi demoApi;
    @GetMapping("test")
    public String test(){
        return demoApi.demoApi();
    }
}
